home *** CD-ROM | disk | FTP | other *** search
- ~0E
- ┌─────────────┐ ┌────────────┐┌─┐
- └┐ ┌┘ │ ┌──────┐└┘ │
- │ │ │ │ └───┘
- │ │ │ │ <tm>
- │ │ │ └─────────────┐
- │ │ └──────┐ │
- │ │ │ │
- │ │ │ │
- │ └─────────┘ │
- │ U n i q u e S o f t w a r e │
- └─────────────────────────────────┘ ~02
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~0F
- Full documentation and License for only $15.00 ~07
- (+$2 for 3.5"-720K disks if needed/requested) ~02
- Unique Software :: Post Office Box 26613
- Fort Worth, Texas 76126-0613
- CompuServe : 70130,330 :: MCI-Mail : 252-8689
- American People Link : UNIQUESOFT ~07
- ~87365~07day - ~8724~07hr Technical FAX Support - 1-817-249-4284
- ~0A
- -Press [PG DN] for next page- ~03
-
-
- This program is produced by a member of
- the Association of Shareware Professionals
- (ASP). ASP wants to make sure that the
- ┌─────────┐ <tm> shareware principle works for you. If you
- ┌─────┴───┐ │ are unable to resolve a shareware-related
- ─│ │o │───────────────── problem with an ASP member by contacting the
- │ ┌─────┴╨──┐ │ Association of member directly, ASP may be able to help.
- │ │ │─┘ Shareware The ASP Ombudsman can help you resolve a
- └───│ o │ Professionals dispute or problem with an ASP member, but
- ─────│ ║ │─────────────────── does not provide technical support for
- └────╨────┘ MEMBER members' products. Please write to the ASP
- Ombudsman at P.O. Box 5786, Bellevue, WA
- 98006 or send a Compuserve message via
- easyplex to ASP Ombudsman 70007,3536 ~02
-
- You should inspect the file with the extension ".LST" for a list of the
- programs which SHOULD be contained in this package and their size. ~0A
-
-
- -Press [PG DN] for next page- ~02
-
- Vendors, User Groups, and Schools must read the file VENDOR.DOC for
- important information relating to their use and distribution of this program.~03
- Shareware is NOT mediocre software because it's inexpensive. It has been
- accurately estimated that research and development costs (programming) in a $500
- program package are less than $50. You see, with Shareware you are NOT PAYING
- for fancy packages, costly advertising, and expensive distribution methods. ~02
- Shareware is NOT FREE. If you "buy" a disk full of software for $3.95,
- $5.00, or $9.99 all you have paid for is the disk, the time for making the
- collection, and shipping and handling. ~03
- The Shareware author is still legally entitled to receive compensation for
- his work. Many programmers make their living by distributing their programs via
- Shareware. The license fee/registration which you should send is a programmer's
- paycheck. ~02
- Shareware gives you get the ULTIMATE GUARANTEE, "If you don't use the
- product, you don't pay for it!". Try getting that guarantee with "commercial"
- software. ~02
- After you have used this program for ~0A30~02 days, you must ~0ADISCONTINUE use OR
- PURCHASE ~02a single-user LICENSE from Unique Software. ~0A
-
- ~0A
- -Press [PG DN] for next page- ~02
-
- It's EASY to become a licensed user of this program, at your DOS prompt type
- `LICENSE' and answer the questions. Your printer does all the work. You don't
- have to write anything. You don't even need an envelope! ~07
- VISA/MC registration is honored by the Public Software Library (800-2424-PSL
- orders - Info 713-665-7017) and you get a $5 credit with PSL for later use. ~03
- Licensed users get printed FULL documentation (when applicable) and receive
- free technical support for a year. Technical questions can be submitted to any
- of the onlines services or FAX'd. (The numbers are listed on the HOME page.)
- [To request techical support, the following is required: free memory before
- running program, printer type (when applic), resident programs, and a listing of
- your AUTOEXEC.BAT and CONFIG.SYS files.] ~02
- This software and documentation are distributed and/or sold "as is" and
- without warranties as to performance of merchantability or any other warranties
- whether expressed or implied. Because of the various hardware and software
- environments into which any program may be put, no warranty of fitness for a
- particular purpose can be offered. Good data processing procedure dictates that
- any program be thoroughly tested with non-critical data before relying on it.
- The user must assume the entire risk of using the program. Any liability of the
- seller will be limited exclusively to product replacement. ~0A
-
- -Press [PG DN] for next page-
- ~#0~0E
- O N C E A D A Y
- Copyright 1989 by Unique Software
- ~03
- ONCEADAY is a small and powerful BATch file utility that will allow you to
- run a file or a group of files only ONCEADAY!
- ~02
- [F1] - Do it quick!
-
- [F2] - What ONCEADAY cannot do
-
- [F3] - Usage
-
- [F4] - BATch file examples
-
- [F5] - Misfeatures
-
- [F6] - History
-
- [F7] - Errata
-
- { [F10] Return to this Menu from anywhere }
- ~#1~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F1] - D O I T Q U I C K !
- ~02
- [1] Move ONCEADAY.COM to a directory which you have in your PATH statement!
-
- [2] Create a BATch file called ONCE.BAT containing the following structure:
- ECHO OFF
- ONCEADAY ONCE.BAT
- IF NOT ERRORLEVEL=1 GOTO SKIPFILES
- (place a list of
- all the file that you
- wish to run only
- ONCEADAY in this area.)
- :SKIPFILES
-
- [3] Type "ONCE" - you will note that ONCEADAY will annouce that "ONCE.BAT"
- has been run today. the reason for this is that ONCEADAY checks the date on the
- file and compares it with the date set on your computer. If you have a file
- dating function, change ONCE.BAT's date to the previous date. If you don't have
- a file dating function, change your system DATE back a day, create ONCE.BAT,
- then reset your system date back to normal.
- ~#2~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F2] - What ONCEADAY cannot do
- ~02
-
- ONCEADAY cannot determine if a file created or modified on a certain day has
-
-
- been run that day. The reason for this is that ONCEADAY uses a file's date in
-
-
- comparison with the system date to determine if the reference file has been used
-
-
- that particular day. Remember anytime you open, use, modify or any way alter a
-
-
- file, DOS automatically updates it's date.
-
-
-
- ~02
- ~#3~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F3] - U S A G E
- ~02
- ONCEADAY [drive:][\path\]ref_file[.ext] ~03{a}~02
- IF ERRORLEVEL=1 <comand> ~05{b}
- ~02
- Even if you're a novice computer user, BATch files should be familiar to
- you. Usually even the beginner has seen many references or actually looked into
- the mysteries of AUTOEXEC.BAT. This is simply a BATch file that is run each time
- the computer is booted (if DOS finds the file that is). A BATch file is simply a
- file containing a listing of various command and/or programs you wish to run.
- (The purpose of this documentation is to explain the use of ONCEADAY.
- Therefore explanations will be limited to the commands needed to use ONCEADAY
- effectively.)
- ONCEADAY checks the date of the ref_file ~03{a}~02 and sets the ERRORLEVEL to 1
- ONLY IF ref_file has NOT been run today! ONCEADAY will also display this on the
- screen. The following statement ~05{b}~02 can then determine ONCEADAY's findings by
- using the ERRORLEVEL test and then a secondary command can be executed. Simply
- stated, in the second line, ~05{b}~02, <command> will be executed if ref_file in the
- first line, ~03{a}~02, has NOT been run today.
- ~02
- ~#4~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F4] - BATch file examples ~02
-
- To run ONE program ONCEADAY use this BATch format
- ONCEADAY [[drive:][\pathname\]]ref_file[.ext]
- IF ERRORLEVEL=1 <file_you_want_to_run_ONCEADAY>
-
- Let's say you use PCTOOLS DELUXE's (by Central Point Software Inc.)
- MIRROR.COM utility in your AUTOEXEC.BAT file. If you re-boot several times a
- day, running MIRROR could waste a lot of time needlessly. Using ONCEADAY your
- AUTOEXEC.BAT file will "know" when to run MIRROR but only ONCEADAY. For example:
- PROMPT $p$g
- REM set our DOS prompt
- CLOCK GET
- REM set the system time to the hardware clock
- ONCEADAY \AUTOEXEC.BAT
- REM check to see if we've run AUTOEXEC.BAT yet
- IF ERRORLEVEL=1 MIRROR C:
- REM run MIRROR only ONCEADAY
- ~0A
- [PGDN] for next page
- ~#4~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F4] - BATch file examples (continued) ~02
-
- To run SEVERAL programs ONCEADAY use this BATch format
-
- ONCEADAY [[drive:][\pathname\]]ref_file[.ext]
- IF ~0FNOT~02 ERRORLEVEL=1 GOTO SKIP_FILES
- {a file to run or BATch command}
- {another file or command}
- {another file or command}
- :SKIP_FILES
-
- As you can see with this method you can run as many BATch commands or files
- as you need. It is important to note that the ~0FNOT~02 modifier reverses the meaning
- of the following BATch command. Therefore the command "GOTO SKIP_FILES" will be
- executed if the ERRORLEVEL is ~0FNOT~02 1.
-
- If you've never seen or used a BATch file label or the GOTO BATch command
- these are explained in a later BATch, [F4], page.
- ~0A
- [PGDN] for next page
- ~#4~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F4] - BATch file examples (continued) ~02
- GOTO's and :labels
-
- On the previous page we used the BATch file command GOTO. GOTO is fairly
- easy to understand. When the BATch file interpreter "reads" a GOTO it scans the
- rest of the BATch file for a label name following the GOTO command. Simply
- stated the GOTO format is:
- GOTO label
- A label is any word, name, number, etc that you wish preceded by a colon,
- ":". For example:
- GOTO jump_to_label {the GOTO command here}
- {other commands or files} {will}
- :jump_to_label {jump to here}
-
- Note that the first eight characters are only significant but can be as long
- as you want. Simply stated "GOTO jump_to_here" and "GOTO jump_to_label" are
- equal to DOS, "GOTO jump_to_". Likewise, ":jump_to_label" and ":jump_to_here"
- are also equal to DOS, ":jump_to_".
- ~0A
- [PGDN] for next page
- ~#5~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F5] - Misfeatures ~02
-
- ONCEADAY has only one side-effect that could be considered a "misfeature".
- In order for ONCEADAY to determine if the reference file has been run, ONCEADAY
- updates the reference file's date to the current system date.
-
- You may wonder, "Why is this a misfeature?"
-
- We forewarn you of this because of the various ways that many BACKUP
- programs determine that a file needs to be backed-up. One way is by comparing a
- file's date to another reference date. Therefore using ONCEADAY on a file may
- "fool" such a BACKUP program into thinking the file needs to be backed-up when
- indeed it doesn't.
-
- NOTE that ONCEADAY does NOT alter a file's attributes. If a backup program
- uses the file's attributes for testing for backup, ONCEADAY will have no effect
- on these type of BACKUP programs at all.
-
- ~0A
- [PGDN] for next page
- ~#5~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
-
- [F5] - Misfeatures (continued) ~02
-
- If you don't mind, or your BACKUP program doesn't mind, a file having a new
- date every day, then the reference file and the file to run can be one in the
- same. Actually this will also give you the advantage of being able to visually
- tell that a particular file has been run today. For example (using the file our
- previous example file MIRROR):
-
- ONCEADAY C:\PCTOOLS\MIRROR
- IF ERRORLEVEL=1 MIRROR C:
-
- To keep ONCEADAY quiet inside a batch file you can redirect it's output
- using the redirection flag, ">". Using the above example:
-
- ONCEADAY C:\PCTOOLS\MIRROR > NUL
- IF ERRORLEVEL=1 MIRROR C:
-
- ~0A
- [PGDN] for next page
- ~#6~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F6] - History ~02
-
-
-
- 1.20·-·Change output so Redirection can be applied to make ONCEADAY quite
- when running. Fixed wording in help screen. Fixed minor bug in internal routine.
-
-
- 1.10 - Reversed ERRORLEVEL now set ERRORLEVEL if file has NOT been run. Add
- message as to whether file has been run today or not.
-
-
- 1.00 - Initial release. Removed multiple errorlevel setting after beta
- reports. Name changed from ONCE to ONCEADAY to prevent confusion. Trap file not
- found error and report.
-
-
-
- ~0A
- [PGDN] for next page
- ~#7~0E
- ONCEADAY 1.20 - Copyright 1989 by Unique Software ~03
- [F7] - Errata ~02
-
- Help US shape this program to your needs!
-
- Beside the fact that supporting good shareware will insure future good
- shareware, YOU can participate in shaping this program. Time and time again
- features are added to our programs because YOU the users have suggested
- improvements or changes you would like to see.
-
-
-
- Bragging Rights!!
-
- Are you tired of a computer friend bragging about his $500 piece of software
- that does this and that? Once registered, brag right back. Show him what you can
- do with YOUR software. So he laughs and flashes his fancy printed manual and
- colorful cardboard wrapper. So flash back the $450+ that you saved by using
- shareware!
-
- ~0A
- >>> END of documentation <<<
-